package edu.nf.db.util.test;

import edu.nf.db.util.Column;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author zhu
 * @date 2024-05-08
 */
public class User {
    @Column("u_id")
    private Integer id;
    @Column("u_name")
    private String username;
    @Column("u_password")
    private String password;
    @Column("birth")
    private LocalDateTime birth;
    @Column("deposit")
    private BigDecimal deposit;

    public User() {
    }

    public User(LocalDateTime birth, BigDecimal deposit, Integer id, String password, String username) {
        this.birth = birth;
        this.deposit = deposit;
        this.id = id;
        this.password = password;
        this.username = username;
    }

    public LocalDateTime getBirth() {
        return birth;
    }

    public void setBirth(LocalDateTime birth) {
        this.birth = birth;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "User{" +
                "birth=" + birth +
                ", id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", deposit=" + deposit +
                '}';
    }
}
